package com.yingxin.yx.framework.commons.activiti.dto;

import com.yingxin.yx.framework.commons.activiti.ApprovalStatus;
import lombok.Data;

import java.util.Date;

@Data
public class UserProcessDto {

    private String processInstanceId;

    private String businessKey;

    private String processDefinitionId;

    private Date startTime;

    private Date endTime;

    private String startUserId;

    private String deleteReason;


    private String bizId;

    private String bizType;

    private String bizNo;

    /**
     * 审核状态 0 审核中 1 通过 -1 未通过 -2 取消 [eq]
     */
    private String processApprovalStatus;

    private String firstAssigneeInfo;

    /**
     * 当前审核人信息
     */
    private String currentAssigneeInfo;

    public String getCurrentAssigneeInfo(){
        // 审核中
        if( ApprovalStatus.PENDING_APPROVAL.getStatus().equals( processApprovalStatus ) ){
            return currentAssigneeInfo;
        }else{
            return "";
        }
    }

    private String lastAssigneeInfo;
    
    private String revocable;

}
